+2006-08-10 Michael Emmel <mike.emmel@gmail.com>
+
+ * gdk/directfb/gdkdrawable-directfb.c
+ Remove gdk_directfb_update_region and calls
+ * gdk/directfb/gdkwindow-directfb.c
+ Code cleanup
+ * gdk/directfb/gdkgeometry-directfb.c
+ Fix scroll call to use region
+
2006-08-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c:
+2006-08-10 Michael Emmel <mike.emmel@gmail.com>
+
+ * gdk/directfb/gdkdrawable-directfb.c
+ Remove gdk_directfb_update_region and calls
+ * gdk/directfb/gdkwindow-directfb.c
+ Code cleanup
+ * gdk/directfb/gdkgeometry-directfb.c
+ Fix scroll call to use region
+
2006-08-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c:
GdkPoint *points,
gint npoints);
-static void inline gdk_directfb_update_region (GdkDrawableImplDirectFB *impl,
- GdkRegion *region);
-
static cairo_surface_t *gdk_directfb_ref_cairo_surface (GdkDrawable *drawable);
}
}
- gdk_directfb_update_region (impl, clip);
gdk_region_destroy (clip);
}
else
impl->surface->DrawRectangle (impl->surface,
x, y, width , height);
impl->surface->SetClip (impl->surface, NULL);
-
- //_gdk_directfb_update (impl, ®ion);
}
}
}
impl->surface->SetClip (impl->surface, NULL);
-
- gdk_directfb_update_region (impl, clip);
gdk_region_destroy (clip);
return;
xdest, ydest);
}
impl->surface->SetClip (impl->surface, NULL);
- gdk_directfb_update_region (impl, clip);
gdk_region_destroy (clip);
}
}
gdk_region_destroy (clip);
-
- //_gdk_directfb_update (impl, ®ion);
}
static void
if (segs->y2 > region.y2)
region.y2 = segs->y2;
}
-
- //_gdk_directfb_update (impl, ®ion);
}
static void
impl->surface->SetClip (impl->surface, NULL);
gdk_region_destroy (clip);
-
- //_gdk_directfb_update (impl, ®ion);
}
static void
image_private->surface->Lock (image_private->surface, DSLF_WRITE,
&image->mem, &pitch);
image->bpl = pitch;
-
- gdk_directfb_update_region (impl, clip);
}
gdk_region_destroy (clip);
return object_type;
}
-static inline void
-gdk_directfb_update_region (GdkDrawableImplDirectFB *impl,
- GdkRegion *region)
-{
- DFBRegion reg = { region->extents.x1, region->extents.y1,
- region->extents.x2 , region->extents.y2 };
-
- _gdk_directfb_update (impl, ®);
-}
-
-void
-_gdk_directfb_update (GdkDrawableImplDirectFB *impl,
- DFBRegion *region)
-{
- g_return_if_fail (GDK_IS_DRAWABLE_IMPL_DIRECTFB (impl));
-
- if (impl->buffered)
- return;
-
- if (!impl->surface)
- return;
-
- impl->surface->Flip (impl->surface, region, 0);
-}
-
-
static GdkScreen * gdk_directfb_get_screen (GdkDrawable *drawable){
return gdk_screen_get_default();
}
impl->surface->SetClip (impl->surface, &update);
impl->surface->Blit (impl->surface, impl->surface, NULL, dx, dy);
impl->surface->SetClip (impl->surface, NULL);
-
- _gdk_directfb_update (impl, &update);
+ impl->surface->Flip(impl->surface,&update,0);
}
}
}
if (impl->surface)
{
DFBRectangle source = { dest_extents.x - dx,
- dest_extents.y - dy,
+ dest_extents.y - dy,
dest_extents.width,
dest_extents.height};
DFBRegion destination = { dest_extents.x,
- dest_extents.y,
- dest_extents.width,
- dest_extents.height};
+ dest_extents.y,
+ dest_extents.x+dest_extents.width-1,
+ dest_extents.y+dest_extents.height-1};
impl->surface->SetClip (impl->surface, &destination);
impl->surface->Blit (impl->surface, impl->surface,&source,dx,dy);
impl->surface->SetClip (impl->surface, NULL);
- _gdk_directfb_update (impl, &destination);
+ impl->surface->Flip(impl->surface,&destination,0);
}
gdk_region_destroy (src_region);
gdk_region_destroy (dest_region);
*/
static GSList *update_windows = NULL;
static guint update_idle = 0;
-static gboolean debug_updates = FALSE;
static void
gdk_window_directfb_process_all_updates (void)
if (window == gdk_directfb_focused_window)
gdk_directfb_change_focus (NULL);
-/*
-printf( " DESTROYING WINDOW %p %p %d parent=%p\n",window,impl->window,recursing,(GDK_WINDOW_OBJECT (window))->parent);
-*/
if (!recursing && !foreign_destroy && impl->window ) {
impl->window->SetOpacity (impl->window,0);
impl->window->Close(impl->window);
if (!gdk_region_empty (visible_region))
{
- //if (debug_updates)
- // draw_ugly_color (window, region);
if (private->update_area)
{
gdk_window_schedule_update (window);
}
}
-
gdk_region_destroy (visible_region);
}
GdkRegion *expose_region;
GdkRegion *window_region;
gint width, height;
-
- //if (debug_updates)
- // {
- /* Make sure we see the red invalid area before redrawing. */
- // gdk_display_sync (gdk_drawable_get_display (window));
- //g_usleep (70000);
- //}
-
save_region = _gdk_windowing_window_queue_antiexpose (window, update_area);
if (save_region)
event.expose.count = 0;
event.expose.region = expose_region;
gdk_region_get_clipbox (expose_region, &event.expose.area);
-
(*_gdk_event_func) (&event, _gdk_event_data);
g_object_unref (window);
gint i;
+ g_assert (region != NULL );
wimpl = GDK_WINDOW_IMPL_DIRECTFB (paintable);
impl = (GdkDrawableImplDirectFB *)wimpl;
impl->buffered = TRUE;
{
DFBRegion reg = { impl->paint_region->extents.x1,
impl->paint_region->extents.y1,
- impl->paint_region->extents.x2 - 1,
- impl->paint_region->extents.y2 - 1 };
-
- _gdk_directfb_update (impl, ®);
+ impl->paint_region->extents.x2 ,
+ impl->paint_region->extents.y2 };
+ impl->surface->Flip(impl->surface, ®,0);
gdk_region_destroy (impl->paint_region);
impl->paint_region = NULL;
}